#include "GLWindow.h"

GLWindow::GLWindow(QWidget *parent, char* name)
    :QGLWidget(QGLFormat(QGL::SampleBuffers), parent)
{

}

GLWindow::~GLWindow()
{
}


void GLWindow::resizeGL(int width, int height)
{
    glViewport(0, 0, width, height);

    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    glOrtho(0, width, height, 0,
    -1,1);

    glMatrixMode(GL_MODELVIEW);

    glEnable(GL_BLEND);
}
